/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-04-05     donghaomin       the first version
 */
#ifndef APPLICATIONS_HARDWRAE_SET_D_HARDWARE_H_
#define APPLICATIONS_HARDWRAE_SET_D_HAEDWARE_H_

#include <rtthread.h>
#include "stm32f1xx_hal.h"

extern unsigned char KEY1;
extern UART_HandleTypeDef huart2;

/*************************/
#define USART_REC_LEN           200         //定义最大接收字节数 200

extern uint8_t temp;

extern uint8_t  USART_RX_BUF[USART_REC_LEN];    //接收缓冲
extern uint16_t USART_RX_STA;                   //接收状态

extern uint8_t aRxBuffer[1];            //HAL库USART接收Buffer
/*************************/

extern void Dong_MX_USART2_UART_Init(void);            // 串口2初始化函数
extern void Dong_MX_GPIO_Init(void);                   // LED引脚,中断按键初始化函数
extern void Dong_USRT2_SendData(uint8_t *pData,uint32_t len);

#endif /* APPLICATIONS_HARDWRAE_SET_D_HARDWARE_H_ */
